//
//  XDConstantHeaderFile.h
//  XDEducation
//
//  Created by apple on 2017/4/1.
//  Copyright © 2017年 apple. All rights reserved.
//

#ifndef XDConstantHeaderFile_h
#define XDConstantHeaderFile_h


/** 系统 */
#define         iPhone6P        ([UIScreen mainScreen].bounds.size.height == 736)
#define         iPhone6         ([UIScreen mainScreen].bounds.size.height == 667)
#define         iPhone5         ([UIScreen mainScreen].bounds.size.height == 568)
#define         iPhone4         ([UIScreen mainScreen].bounds.size.height == 480)
#define         iOS8            ([[UIDevice currentDevice].systemVersion floatValue] >= 8.0)


/** 屏幕尺寸 */
#define         ScreenW         [UIScreen mainScreen].bounds.size.width
#define         ScreenH         [UIScreen mainScreen].bounds.size.height

/** 屏幕适配比例 4.7寸屏幕为准 */
#define         ScaleWidth      (ScreenW / 375.f)
#define         ScaleHeight     (ScreenH / 667)

#define  kScreenWidth   [UIScreen mainScreen].bounds.size.width
#define  kScreenHeight  [UIScreen mainScreen].bounds.size.height

#define WeakSelf(weakSelf)  __weak __typeof(&*self)weakSelf = self;


#define XDNetWorkError @"请求超时"
#define XDNoMoreData @"没有更多数据"
#define XDNoData @"暂无相关数据"

#define HNPlaceholderImage @"image_user_default"


#define Mp3FileUrl @"Mp3"
#endif /* XDConstantHeaderFile_h */
